<?php
namespace app\common\model;

class RegionModel extends Model {
	
	protected $table = 'region';
	protected $id = 'id';
	protected $type = array(
		'id' => 'integer',
		'parent_id' => 'integer',
		'name' => 'string',
		'name_full' => 'string',
		'grade' => 'integer',
		'outside_id' => 'integer',
		'is_recovery' => 'integer',
	);
	
	public static $is_recovery = array(
		0 => '不允许',
		1 => '正常',
	);
	public function getIsRecoveryString() {
		return $this->disposeAttr(self::$is_recovery, $this->getData('is_recovery'));
	}
	
}